package com.day12_Thread.BoxDemo;

/**
 * @ClassName: Producer
 * @Author: zw
 * @Description: 出百万拳，行万里路；
 * @Create 2024/3/24-01:09
 * @Version 1.0
 */
public class Producer implements Runnable{
    private Box b;
    public Producer(Box box) {
        this.b = box;
    }

    @Override
    public void run() {
        for (int i = 1; i <= 5; i++) {
            b.put(i);
        }
    }
}
